﻿(()=>{"use strict";var e,t,r,n={251976:(e,t,r)=>{r.d(t,{PINNED_CONVERSATION_BIT_MASK:()=>n,MASS_MENTION_ALIASES:()=>o,MASS_MENTION_REGEXP:()=>i,VK_OFFICIAL_PEER_ID:()=>a});r(283946);var n=112,o={all:["all","everyone","все"],online:["online","here","здесь","тут"]},i=new RegExp(['(?!,|;|:|\\.|\\s|<br ?/?>|"|\\(|\\)|\\[|\\]|!|\\?)',"(",[].concat(o.all).concat(o.online).map((e=>`@${e}|\\*${e}`)).join("|"),")",'(?=$|,|;|:|\\.(?![a-z0-9_-])|\\s|<br ?/?>|"|\\(|\\)|\\[|\\]|!|\\?)'].join(""),"gi"),a=-22822305},826338:(e,t,r)=>{r.d(t,{convertKludgesToAttaches:()=>l,isReservedPeer:()=>f,isVkAdminPeer:()=>h,isSupportAgentPeer:()=>p,isUserPeer:()=>_,isChatPeer:()=>v,isEmailPeer:()=>g,isContactPeer:()=>y,isCommunityPeer:()=>b,convertAttachesToPhpMedia:()=>O,isPinnedSortId:()=>m,isOnboardingFindFriendsLink:()=>w});var n=r(570655),o=r(40906),i=r(251976),a=r(961540);function u(e,t){void 0===t&&(t=[]);var r=(0,n.__read)(e.split("_"),2);return[r[0],r[1],t]}function c(e,t,r,o){if(void 0===r&&(r=0),void 0===o&&(o=0),o>50)return[[],e.length];for(var i=[],a="";r<e.length;){var d=e[r];if("id"===d)a=t[r];else if(","===d&&a)i.push(u(a)),a="";else if("("===d){var s=(0,n.__read)(c(e,t,r+1,o+1),2),l=s[0];r=s[1],i.push(u(a,l)),a=""}else if(")"===d)return""!==a&&i.push(u(a)),[i,r];r++}return a&&i.push(u(a)),[i,r]}var d={};function s(e){if(d[e])return d[e];for(var t=e?e.length:0,r=[],o=[],i="",a=0;a<t;a++){var u=e[a],s=u.charCodeAt(0);s>=48&&s<=57||"_"===u||"-"===u?i+=u:"("!==u&&")"!==u&&":"!==u&&","!==u||(""!==i&&(o.push(i),r.push("id"),i=""),o.push(u),r.push(u))}i.length>0&&(o.push(i),r.push("id"));var l=(0,n.__read)(c(r,o),1)[0];return Object.keys(d).length>300&&(d={}),d[e]=l,l}function l(e,t){var r=[];e.fwd_count?r.push({type:"mail",id:-t,object:{fwd_count:e.fwd_count}}):e.fwd&&r.push({type:"mail",id:-t,object:{fwd_count:s(e.fwd).length}});for(var n=1;e["attach"+n+"_type"];++n)switch(e["attach"+n+"_type"]){case"call":r.push({type:e["attach"+n+"_type"],id:e["attach"+n],initiatorId:(0,o.intval)(e["attach"+n+"_call_initiator_id"]),state:e["attach"+n+"_call_state"],duration:(0,o.intval)(e["attach"+n+"_call_duration"]),receiverId:(0,o.intval)(e["attach"+n+"_call_receiver_id"])});break;case"doc":if("audiomsg"===e["attach"+n+"_kind"]){var i=e.attachments?JSON.parse(e.attachments)[0]:{};r.push({type:e["attach"+n+"_type"],kind:"audio_message",id:e["attach"+n],audio_message:i.audio_message});break}default:r.push({type:e["attach"+n+"_type"],id:e["attach"+n],kind:e["attach"+n+"_kind"],productId:e["attach"+n+"_product_id"]})}return e.geo&&r.push({type:"geo",id:e.geo}),r}function f(e){return 0==e}function h(e){return 100===e}function p(e){return 333===e}function _(e){return e>0&&e<2e9}function v(e){return e>2e9}function g(e){return e<-2e9}function y(e){return e>19e8&&e<2e9}function b(e){return e>-2e9&&e<0}function O(e){return e.map((function(e){var t="audiomsg"===e[2]?"audio_message":e[2];return e[0]+":"+e[1]+":"+t})).join(",")}function m(e){return e>0&&(e|i.PINNED_CONVERSATION_BIT_MASK)===i.PINNED_CONVERSATION_BIT_MASK}function w(e){return new RegExp("(^(https?:\\/\\/)?([a-z0-9_\\-.]+\\.)?"+a.VK_SITE_REGEX_SOURCE_UNSAFE+")?\\/onboarding_find_friends").test(decodeURIComponent(e))}},441163:(e,t,r)=>{var n=r(104958);window.Emoji||(window.Emoji=n.Emoji);try{window.stManager.done(window.jsc("web/emoji.js"))}catch(e){}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=n,e=[],i.O=(t,r,n,o)=>{if(!r){var a=1/0;for(s=0;s<e.length;s++){for(var[r,n,o]=e[s],u=!0,c=0;c<r.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((e=>i.O[e](r[c])))?r.splice(c--,1):(u=!1,o<a&&(a=o));if(u){e.splice(s--,1);var d=n();void 0!==d&&(t=d)}}return t}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[r,n,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,r({}),r([]),r(r)];for(var u=2&n&&e;"object"==typeof u&&!~t.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.e=()=>Promise.resolve(),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={50098:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,u,c]=r,d=0;for(n in u)i.o(u,n)&&(i.m[n]=u[n]);if(c)var s=c(i);for(t&&t(r);d<a.length;d++)o=a[d],i.o(e,o)&&e[o]&&e[o][0](),e[a[d]]=0;return i.O(s)},r=self.webpackChunkvk=self.webpackChunkvk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=i.O(void 0,[38288,68592,24509,43639],(()=>i(441163)));a=i.O(a)})();